<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="contentDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='contentDetail.heading'/>"/>
</head>

<s:form id="contentForm" action="saveContent" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="content.id"/>
    </li>
    <s:textfield key="content.title" required="false" cssClass="text medium"/>
    <s:textfield key="content.category.id" required="false" cssClass="text medium"/>
    <s:textfield key="content.author" required="false" cssClass="text medium"/>
    <s:textfield key="content.authorEmail" required="false" cssClass="text medium"/>
    <s:textfield key="content.tags" required="false" cssClass="text medium"/>
    <s:textfield key="content.shortDescription" required="false" cssClass="text medium"/>
    <s:textfield key="content.extUrl" required="false" cssClass="text medium"/>
    <s:textfield key="content.media" required="false" cssClass="text medium"/>
    <s:textfield key="content.fullContent" required="false" cssClass="text medium"/>
    <s:textfield key="content.publishDate" required="false" cssClass="text medium"/>
    <s:textfield key="content.valideFrom" required="false" cssClass="text medium"/>
    <s:textfield key="content.valideTo" required="false" cssClass="text medium"/>
    

    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <c:if test="${not empty content.id}">
            <s:submit cssClass="button" method="delete" key="button.delete"
                onclick="return confirmDelete('Content')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("contentForm"));
</script>